<?php if (!defined('HKCMS_VERSION')) exit(); ?>
<style type="text/css">
    .tt{
        float: left;
        padding: 10px;
    }

</style>
<div class="table_list">

    {volist name="data" id="vo"}
        <div class="tt">
            <img src="{$vo.image}" width="240" height="260">
            <h3><a href="{$vo.fullurl}" target="_blank">{$vo.title}</a></h3>
            <p>版本：{$vo.version}</p>
            <?php
            $path = TEMPLATE_PATH.$vo['mark'];
            if (is_dir($path)) {
                echo "已安装";
            }else{
                if (!version_compare(HKCMS_VERSION,$vo['hkcms_version'],$vo['hkcms_version_op'])) {
                    echo '版本要求('.$vo['hkcms_version_op'].$vo['hkcms_version'].')';
                } else if($vo['price']>0){
                    if (!empty($vo['ispaid']) && $vo['ispaid']==1) {
                        echo '<a href="'.url('install',array('id'=>$vo['id'],'mark'=>$vo['mark'])).'" class="btn btn_submit mr5 Js_install">安装</a>';
                    } else {
                        echo "<a href='".$vo['fullurl']."' target='_blank' class=\"btn btn_submit\">购买</a> <font color=\"#FF0000\">价格：".$vo['price']." 元</font>";
                    }
                } else if ($vo['price']<=0) {
                    echo '<a href="'.url('install',array('id'=>$vo['id'],'mark'=>$vo['mark'])).'" class="btn btn_submit mr5 Js_install">安装</a>';
                }
            }
            ?>
        </div>
    {/volist}

</div>
<div class="center pages">{$Page}</div>